package com.zc.timedown.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zc.timedown.domain.DailyQuote;
import com.zc.timedown.domain.DailyQuoteFavorite;

import java.util.ArrayList;
import java.util.List;


/**
 * 每日一句Service接口
 *
 * @author zc
 * @date 2025-09-29
 */
public interface ApiDailyQuoteService extends IService<DailyQuote>
{


    Integer collectDailyQuote(Long useId, Long quoteId);

    Integer cancelCollectDailyQuote(Long useId, Long id);

    ArrayList<DailyQuoteFavorite> collectDailyQuoteFavoriteList(Long useId);

    List<DailyQuoteFavorite> getDailyCollectQuote();

    public int insertDailyQuote(DailyQuote dailyQuote);

    /**
     * 修改每日一句
     *
     * @param dailyQuote 每日一句
     * @return 结果
     */
    public int updateDailyQuote(DailyQuote dailyQuote);

    /**
     * 删除每日一句信息
     *
     * @param id 每日一句主键
     * @return 结果
     */
    public int deleteDailyQuoteById(Long id);

    public int deleteDailyQuoteFavoriteById(Long id);


    DailyQuote getDailyQuote(Long quoteId, Integer sourceType);

    List<DailyQuote> getDailyQuoteList(Long useId);
}